home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MODULES
/
MEMALLOC.ZIP
/
!Help
next >
Wrap
Text File
|
1997-03-04
|
2KB
|
48 lines
MemAlloc II - Replacement module for the buggy "MemAlloc"
© 1997 by Christian Kohlschütter (wombat@hof.baynet.de)
This module is FREEWARE - All rights remain at the author
You may use this module in your own applications.
No code from the original MemAlloc util was used.
MemAlloc II just emulates MemAlloc's system commands.
It's even less than half the size of the original code.
MemAlloc II implements the following commands:
*SystemSize <size in Kbytes> [<command>]
*RMASize <size in Kbytes> [<command>]
*ScreenSize <size in Kbytes> [<command>]
*SpriteSize <size in Kbytes> [<command>]
*FontSize <size in Kbytes> [<command>]
*RAMSize <size in Kbytes> [<command>]
*RMAFree <size in Kbytes> [<command>]
*SpriteFree <size in Kbytes> [<command>]
*FontFree <size in Kbytes> [<command>]
SystemSize, RMASize, ScreenSize... set the amount of allocated
memory for the specific dynamic area (System area, Module area,
Sprite area etc.) in Kbytes. MemAlloc will try to reduce the free
memory in that area as far as possible. "*RMASize 0", for example,
would tidy the RMA (=Module area) a bit, without destroying any
contents.
RMAFree, SpriteFree and FontFree set the amount of free memory
for the specific dynamic area (Module area, Sprite area and Font
Cache) in Kbytes. MemAlloc reduces the area to its minimum first
and allocates the given amount of memory after that. So, it
ensures that there is enough unused memory left in the specific
area.
If the amount of memory needed is too big, a standard error
message will appear; or if the optional *-command is given
the command is executed instead.
"ScreenSize 160k Error Change to Mode 15 and run again" will
only give an error message if there is really no more usable
memory left. The original MemAlloc reports an error even if
there was more than 160k in the screen area.